import {request} from 'umi';

export async function fetchPkgList(body) {
  return request('/mall/common/pkg-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchServeCateList(body) {
  return request('/mall/common/serve-cate-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchServeList(body) {
  return request('/mall/common/serve-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchServeCardList(body) {
  return request('/mall/common/serve-card-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchGoodsCateList(body) {
  return request('/mall/common/goods-cate-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchGoodsList(body) {
  return request('/mall/common/goods-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchGoodsSpecList(body) {
  return request('/mall/common/goods-spec-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}




